package com.xcf.service.business.common.domesticGoods.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.common.domesticGoods.DomesticGoodsService;
import com.xcf.util.PageData;
@Service("DomesticGoodsServiceImpl")
public class DomesticGoodsServiceImpl implements DomesticGoodsService{
	@Resource(name="daoSupport")
	private  DaoSupport daosuport;

	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> serch(PageData pd) throws Exception {
		
		return (List<PageData>) daosuport.findForList("domesticgoodssrcmapper.serch", pd);
	}

	@Override
	public void save(PageData pd) throws Exception {
		daosuport.save("domesticgoodssrcmapper.save", pd);
		
	}

	@Override
	public void updite(PageData pd) throws Exception {
		daosuport.update("domesticgoodssrcmapper.updite", pd);
		
	}

	//删除
	@Override
	public void delte(PageData phq) throws Exception {
		daosuport.delete("domesticgoodssrcmapper.delte", phq);
		
	}
}
